package com.xb.loan.encryptor.bean;


import com.xb.loan.util.DateHelper;

import java.util.Date;


public abstract class LotteryBean {

	protected Head head;

	public Head getHead() {
		return head;
	}

	public void setHead(Head head) {
		this.head = head;
	}
	
	public static Head createHead(String transcode, String guid){
		
		Head head = new Head();
		
		head.setGuid(guid);
		head.setTranscode(transcode);
		head.setTimeStamp(DateHelper.formatDate("yyyyMMddHHmmss", new Date()));
		
		return head;
	}

}
